//
//  buttonView.h
//  MiBaoTu
//
//  Created by 彭鹏 on 16/9/28.
//  Copyright © 2016年 com.caesartech15. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol MBButtonViewDelegate <NSObject>

- (void)onSelectCollectionMusicWithValue:(id)value; //收藏
- (void)onSelectPLayMusicTypeWithValue:(PLayerModelType)value; //播放模式
- (void)onSelectDownMusicWithValue:(id)value; //下载歌曲
- (void)onSelectShareMusicWithValue:(id)value; //分享

@end

@interface MBButtonView : UIView

@property (nonatomic,assign)id<MBButtonViewDelegate>delegate;
@property (nonatomic,assign)PLayerModelType   playType;
@property (nonatomic,assign)BOOL isDownLoad; //是否下载

- (void)onUpdateCollection:(BOOL)isCollection;
- (void)onUpdatePlayMusicType:(PLayerModelType)type;

- (void)onUpdateDown:(BOOL)isDown withModel:(Music *)currentMusic;
- (void)onEnabledUpdateDown;
@end


